package cn.edu.hqu.cst.android.uc;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class UC1 extends AppCompatActivity{
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uc1);
        Button I = findViewById(R.id.L1);
        I.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(UC1.this,LinearLayout1.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button II = findViewById(R.id.L2);
        II.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(UC1.this,LinearLayout2.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button III = findViewById(R.id.L3);
        III.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(UC1.this,LinearLayout3.class);
                startActivities(new Intent[]{intent});
            }
        });

        Button IV = findViewById(R.id.L4);
        IV.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(UC1.this,MainActivity.class);
                startActivities(new Intent[]{intent});
            }
        });
    }
}

